package com.dianping.cat.configuration.business.entity;

import com.dianping.cat.configuration.business.BaseEntity;
import com.dianping.cat.configuration.business.IVisitor;











public class CustomConfig
  extends BaseEntity<CustomConfig>
{
  private String m_id;
  private double m_viewOrder;
  private String m_title;
  private boolean m_alarm = false;
  private boolean m_privilege = false;
  private String m_pattern;

/*  26 */   public CustomConfig(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitCustomConfig(this); }



  public boolean equals(Object obj) {
    if (obj instanceof CustomConfig) {
/*  37 */       CustomConfig _o = (CustomConfig)obj;

/*  39 */       if (!equals(getId(), _o.getId())) {
/*  40 */         return false;
      }

/*  43 */       return true;
    }

/*  46 */     return false;
  }


/*  50 */   public boolean getAlarm() { return this.m_alarm; }



/*  54 */   public String getId() { return this.m_id; }



/*  58 */   public String getPattern() { return this.m_pattern; }



/*  62 */   public boolean getPrivilege() { return this.m_privilege; }



/*  66 */   public String getTitle() { return this.m_title; }



/*  70 */   public double getViewOrder() { return this.m_viewOrder; }







/*  83 */   public boolean isAlarm() { return this.m_alarm; }



/*  87 */   public boolean isPrivilege() { return this.m_privilege; }



  public void mergeAttributes(CustomConfig other) {
/*  92 */     assertAttributeEquals(other, "custom-config", "id", this.m_id, other.getId());

/*  94 */     this.m_viewOrder = other.getViewOrder();

/*  96 */     if (other.getTitle() != null) {
/*  97 */       this.m_title = other.getTitle();
    }

/* 100 */     this.m_alarm = other.getAlarm();

/* 102 */     this.m_privilege = other.getPrivilege();
  }

  public CustomConfig setAlarm(boolean alarm) {
/* 106 */     this.m_alarm = alarm;
/* 107 */     return this;
  }

  public CustomConfig setId(String id) {
/* 111 */     this.m_id = id;
/* 112 */     return this;
  }

  public CustomConfig setPattern(String pattern) {
/* 116 */     this.m_pattern = pattern;
/* 117 */     return this;
  }

  public CustomConfig setPrivilege(boolean privilege) {
/* 121 */     this.m_privilege = privilege;
/* 122 */     return this;
  }

  public CustomConfig setTitle(String title) {
/* 126 */     this.m_title = title;
/* 127 */     return this;
  }

  public CustomConfig setViewOrder(double viewOrder) {
/* 131 */     this.m_viewOrder = viewOrder;
/* 132 */     return this;
  }

  public CustomConfig() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/business/entity/CustomConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */